'use strict';

const puppeteer = require('puppeteer')
const http = require('http')
const devices = require('puppeteer/DeviceDescriptors');

(async () => {
		// const browser = await puppeteer.launch({headless:false,});
		// const page =  await browser.newPage();
		// await page.goto('http://vip.anjuke.com/login/');
		// page.click("#J_Quick2Static")
		// await page.type('#TPL_username_1','ttbbbl',{delay:100})
		// await page.type('#TPL_password_1','twy930107',{delay:100})
		// await page.waitFor(5000)
		// page.click("#J_SubmitStatic")
		// await page.waitForSelector(".s-item-list")
		// await page.waitFor(5000)
		// await page.screenshot({path: 'taobao.png'});
		// await browser.close();
		
		const browser = await puppeteer.launch({headless:false,});
		const page =  await browser.newPage();
		await page.goto('http://vip.anjuke.com/login/');
		page.click(".login-switch")
		await page.type('#loginName','15828326228',{delay:100})
		await page.type('#loginPwd','liuling2013115',{delay:100})
		await page.waitFor(2000)
		page.click("#loginSubmit")
		await page.waitFor(3000)
		// await page.screenshot({path: 'taobao.png'});
		await browser.close();
		
	}
)();